package wangxiaotao.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 订单状态
 */
@Getter
public enum OrderStatue {
    CANCER(0,"已取消"),
    WAITPAY(1,"待付款"),
    OKPAY(2,"已付款"),
    WAITRIGHT(3,"待确认"),
    OKRIGHT(4,"已确认"),
    OKIN(5,"已入住"),
    WAITCOM(6,"待评论"),
    OK(7,"已完成"),

    WAITREFUND(8,"待退款"),
    OKREFUND(9,"已退款"),
    ERROR(10,"错误");

    @EnumValue
    @JsonValue
    private final Integer statue;

    private final String name;

    OrderStatue(Integer statue,String name){
        this.statue = statue;
        this.name = name;
    }
}
